package dataobject

import "time"

// Character 对应角色表的结构体
type Character struct {
	ID        int       `json:"id,omitempty"`
	Name      string    `json:"name,omitempty"`
	Nickname  string    `json:"nickname,omitempty"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

// TableName 重定义表名
func (char Character) TableName() string {
	return "character"
}